package main

import "fmt"

func main() {
	//
	//var a [5]int
	//a[4] = 100
	//fmt.Println("get:", a[2])
	//fmt.Println("len:", len(a))
	//
	//b := [5]int{1, 2, 3, 4, 5}
	//fmt.Println(b)
	//
	//var twoD [2][3]int
	//for i := 0; i < 2; i++ {
	//	for j := 0; j < 3; j++ {
	//		twoD[i][j] = i + j
	//	}
	//}
	//fmt.Println("2d: ", twoD)

	var a [5]int
	a[3] = 3
	println(a[0])
	println(a[3])
	println(len(a))

	b := [5]int{1, 2, 3, 4, 5}
	for i := 0; i < len(b); i++ {
		println(b[i])
	}
	fmt.Println(b)

	var two [2][3]int
	println(len(two))
	println(len(two[0]))
	for i := 0; i < len(two); i++ {
		for j := 0; j < len(two[0]); j++ {
			two[i][j] = i * j
		}
	}
	fmt.Println(two)

}
